package com.visikard.utility;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class VKBroadcastReceiver extends BroadcastReceiver{
	
	private IVKBroadcastReceiver _receiver = null;
	
	public void setReceiver(IVKBroadcastReceiver receiver){
		_receiver = receiver;
	}
	
    @Override
    public void onReceive(Context context, Intent intent) {                 
    	if(_receiver != null)
    		_receiver.onMessageReceived(context, intent);
    }
    
    public interface IVKBroadcastReceiver{
    	public void onMessageReceived(Context context, Intent intent);
    }
    
}